'''
Created on Jan 29, 2010

@author: madsk
'''

from PyQt4 import QtCore, QtGui

class ProcessingOverlay(QtGui.QGraphicsRectItem):
    BASE_RECT = QtCore.QRectF(0, 0, 800, 480)
    
    def __init__(self, parent=None, scene=None):
        super(ProcessingOverlay, self).__init__(ProcessingOverlay.BASE_RECT, parent, scene)
        self.setOpacity(0.7)
        self.setZValue(2)
        self.setBrush(QtGui.QBrush(QtGui.QColor(0,0,0)))
        
    def mousePressEvent(self, event):
        # Simply discard the event.
        pass